<script setup lang="ts">
defineProps({
  icon: {
    type: String,
    default: "",
  },
  fontSize: Number,
});
</script>

<template>
  <el-icon v-if="icon" :style="{ fontSize: fontSize + 'px' }">
    <component :is="icon"></component>
  </el-icon>
</template>

<style scoped></style>
